import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'mchSysRole/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'mchSysRole/get',
			headers: {},
			method: 'post',
			data,
		});
	},

	add (data) {
		return request({
			url: 'mchSysRole/add',
			headers: {},
			method: 'post',
			data,
		});
	},

	set (data) {
		return request({
			url: 'mchSysRole/edit',
			headers: {},
			method: 'post',
			data,
		});
	},

	del (data) {
		return request({
			url: 'mchSysRole/del',
			headers: {},
			method: 'post',
			data,
		});
	},

	setAccess (data = {}) {
		return request({
			url: 'mchSysRole/setAccess',
			headers: {},
			method: 'post',
			data,
		});
	},

	getOptions (data = {}) {
		return request({
			url: 'mchSysRole/getOptions',
			headers: {},
			method: 'post',
			data,
		});
	},

	statusOptions (data = {}) {
		return request({
			url: 'mchSysRole/statusOption',
			headers: {},
			method: 'post',
			data,
		});
	},

	isSuperOptions (data = {}) {
		return request({
			url: 'mchSysRole/isSuperOption',
			headers: {},
			method: 'post',
			data,
		});
	},
};